package com.cnh.framework.bean;

import com.cnh.framework.util.CastUtil;

import java.util.Map;

/**
 * @author cnh
 * @create 2019-02-14 15:39
 * 说明：请求参数对象
 */
public class Param {
    private Map<String, Object> paramMap;

    public Param(Map<String, Object> paramMap) {
        this.paramMap = paramMap;
    }
    /**
     * 根据参数名获取long型参数值
     * @param name
     * @return
     */
    public long getLong(String name)
    {
        return CastUtil.castLong(paramMap.get(name));
    }

    public Map<String, Object> getMap()
    {
        return paramMap;
    }

}
